package control.servlet.produit;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import modele.Produit;

import control.bd.requete.Requetes;

public class Gazeux extends HttpServlet {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws IOException, ServletException{
    	List<Produit> produits = Requetes.getGazeux();
    	request.setAttribute("produits", produits);
    	request.getRequestDispatcher("/Rayon/boissons.jsp").forward(request, response);
    }

}
